package com.xiaoxi.strategymode.strategy;

import com.xiaoxi.strategymode.play.Hand;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.strategymode.strategy
 * @ClassName PollingStrategy
 * @Description TODO
 * @Date 2023/3/13 21:12
 * @Version 1.0
 */
public class PollingStrategy implements IStrategy {

    private int currentHand;

    @Override
    public Hand nextHand() {
        return Hand.hands[(currentHand++) % 3];
    }

    @Override
    public void study(boolean study) {
        System.out.println("轮询算法，无需学习");
    }
}
